package cn.stylefeng.guns.modular.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * 日程框架
 *
 * @author third_e
 * @create 2019/12/9 0009-下午 10:23
 */

@TableName("te_frame")
public class Frame implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "frame_id",type = IdType.ID_WORKER)
    private Long frameId;

    /**
     * 框架名
     */
    @TableField("frame_name")
    private String frameName;

    /**
     * 框架描述
     */
    @TableField("frame_description")
    private String frameDescription;

    /**
     * 发布状态
     */
    @TableField("post_status")
    private String postStatus;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建者
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;




//    private List<Frameitem> frameitem;
//
//    public List<Frameitem> getFrameitem() {
//        return frameitem;
//    }
//
//    public void setFrameitem(List<Frameitem> frameitem) {
//        this.frameitem = frameitem;
//    }




    public Long getFrameId() {
        return frameId;
    }

    public void setFrameId(Long frameId) {
        this.frameId = frameId;
    }

    public String getFrameName() {
        return frameName;
    }

    public void setFrameName(String frameName) {
        this.frameName = frameName;
    }

    public String getFrameDescription() {
        return frameDescription;
    }

    public void setFrameDescription(String frameDescription) {
        this.frameDescription = frameDescription;
    }

    public String getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(String postStatus) {
        this.postStatus = postStatus;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Frame{" +
                "frameId=" + frameId +
                ", frameName='" + frameName + '\'' +
                ", frameDescription='" + frameDescription + '\'' +
                ", postStatus='" + postStatus + '\'' +
                ", status='" + status + '\'' +
                ", userId=" + userId +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", version=" + version +
                '}';
    }
}
